package java04;

public class Exception03 {
    public static int divide(int x,int y) throws Exception{
        int result = x / y;
        return result;
    }
    public static void main(String[] args) throws Exception{//抛出异常，并不对异常进行处理
        int result = divide(6,0);
        System.out.println(result);
    }
}
